package com.aier.school.entity;


import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.aier.classes.entity.ClassParent;
import com.aier.classes.entity.Classes;



/**
 * School entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "school", catalog = "abc")
public class School implements java.io.Serializable {

    // Fields 学校表                                                                               app
    private Integer sid;    //学校id          id
    private String name;    //学校名称                             name
    private Integer pid;    //所属代理商的id     pid
    private Integer cid;        //所在城市id    
    private Integer mesCount;//剩余可用短信条数
    private String desinfo;    //学校简介                     info
    private String img;        //学校主图                     bgIma
    private String slogo;    //学校logo
    private Integer method;  // 学校付费方式
    private String methodStr; //
    private String mesSuffix; // 学校短信后缀
    
    // 扩展
    private Integer classCount;   // 班级数
    private String managers;      //学校管理员名字与账号;
    private Integer num_teacher;      //班级教师人数
    private Integer num_student;       //班级学生人数
    private Integer num_parent;        //班级家长人数         
    private Integer memberNum;        // memberNum =班级教师人数 + 班级学生人数+班级家长人数   	
    private Integer count;        // 已发送短信条数   
    
    private String address;       //           address
    private String phone;         //联系电话                  phone
    private String postcode;      //邮编                          postcode
    private String url;           //具体网址                  url
    
    private String appStatusSchool;      //权限
    
	private List<Classes> classList; // 用户所在班级
	
	private int id;
	
	    // Constructors
    /** default constructor */
    public School() {
    }


	public School(String name, Integer pid, Integer cid, String desinfo) {
        super();
        this.name = name;
        this.pid = pid;
        this.cid = cid;
        this.desinfo = desinfo;
    }



    public School(Integer sid, String name, Integer pid, Integer cid,
            String desinfo, String img, String slogo, Integer mesCount,Integer method) {
        super();
        this.sid = sid;
        this.name = name;
        this.pid = pid;
        this.cid = cid;
        this.desinfo = desinfo;
        this.img = img;
        this.slogo = slogo;
        this.mesCount = mesCount;
        this.method = method;
    }


	public Integer getSid() {
		return sid;
	}


	public void setSid(Integer sid) {
		this.sid = sid;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public Integer getPid() {
		return pid;
	}


	public void setPid(Integer pid) {
		this.pid = pid;
	}


	public Integer getCid() {
		return cid;
	}


	public void setCid(Integer cid) {
		this.cid = cid;
	}


	public Integer getMesCount() {
		return mesCount;
	}


	public void setMesCount(Integer mesCount) {
		this.mesCount = mesCount;
	}


	public String getDesinfo() {
		return desinfo;
	}


	public void setDesinfo(String desinfo) {
		this.desinfo = desinfo;
	}


	public String getImg() {
		return img;
	}


	public void setImg(String img) {
		this.img = img;
	}


	public String getSlogo() {
		return slogo;
	}


	public void setSlogo(String slogo) {
		this.slogo = slogo;
	}


	public Integer getMethod() {
		return method;
	}


	public void setMethod(Integer method) {
		this.method = method;
	}


	public String getMethodStr() {
		return methodStr;
	}


	public void setMethodStr(String methodStr) {
		this.methodStr = methodStr;
	}


	public String getMesSuffix() {
		return mesSuffix;
	}


	public void setMesSuffix(String mesSuffix) {
		this.mesSuffix = mesSuffix;
	}


	public Integer getClassCount() {
		return classCount;
	}


	public void setClassCount(Integer classCount) {
		this.classCount = classCount;
	}


	public String getManagers() {
		return managers;
	}


	public void setManagers(String managers) {
		this.managers = managers;
	}


	public Integer getNum_teacher() {
		return num_teacher;
	}


	public void setNum_teacher(Integer num_teacher) {
		this.num_teacher = num_teacher;
	}


	public Integer getNum_student() {
		return num_student;
	}


	public void setNum_student(Integer num_student) {
		this.num_student = num_student;
	}


	public Integer getNum_parent() {
		return num_parent;
	}


	public void setNum_parent(Integer num_parent) {
		this.num_parent = num_parent;
	}


	public Integer getMemberNum() {
		return memberNum;
	}


	public void setMemberNum(Integer memberNum) {
		this.memberNum = memberNum;
	}


	public Integer getCount() {
		return count;
	}


	public void setCount(Integer count) {
		this.count = count;
	}


	public String getAddress() {
		return address;
	}


	public void setAddress(String address) {
		this.address = address;
	}


	public String getPhone() {
		return phone;
	}


	public void setPhone(String phone) {
		this.phone = phone;
	}


	public String getPostcode() {
		return postcode;
	}


	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}


	public String getUrl() {
		return url;
	}


	public void setUrl(String url) {
		this.url = url;
	}


	public String getAppStatusSchool() {
		return appStatusSchool;
	}

	public void setAppStatusSchool(String appStatusSchool) {
		this.appStatusSchool = appStatusSchool;
	}


	public List<Classes> getClassList() {
		return classList;
	}


	public void setClassList(List<Classes> classList) {
		this.classList = classList;
	}

	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}
	
}